﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WhereIsMyCash.Config
{
    public class ConfigHelper
    {
        #region 字段

        static readonly string ROOT_DAL = "WhereIsMyCash.SQLServerDAL";
        static readonly string ACCOUNT_DAL = "Account";
        static readonly string CARD_DAL = "Card";
        static readonly string CONTACT_GROUP_DAL = "ContactGroup";
        static readonly string CONTACT_DAL = "Contact";
        static readonly string EXPENDITURE_DAL = "Expenditure";
        static readonly string EXPENDITURE_DETAIL_DAL = "ExpenditureDetail";
        static readonly string EXPENDITURE_TYPE_DAL = "ExpenditureType";
        static readonly string INCOME_DAL = "Income";
        static readonly string INCOME_DETAIL_DAL = "IncomeDetail";
        static readonly string INCOME_TYPE_DAL = "IncomeType";
        static readonly string LOG_DAL = "Log";
        static readonly string USER_DAL = "User";

        #endregion

        #region 数据库链接字符串

        static readonly string connectionString = System.Configuration.ConfigurationManager.ConnectionStrings["SQLConn"].ConnectionString;
        /// <summary>
        /// 数据库链接字符串
        /// </summary>
        public static string ConnectionString
        {
            get
            {
                return connectionString;
            }
        }

        #endregion

        #region 程序集名称

        /// <summary>
        /// 根程序集名称
        /// </summary>
        public static string RootDAL
        {
            get
            {
                return ROOT_DAL;
            }
        }

        /// <summary>
        /// 账户程序集名称
        /// </summary>
        public static string AccountDAL
        {
            get
            {
                return ACCOUNT_DAL;
            }
        }

        /// <summary>
        /// 银行卡程序集名称
        /// </summary>
        public static string CardDAL
        {
            get
            {
                return CARD_DAL;
            }
        }

        /// <summary>
        /// 联系人程序集名称
        /// </summary>
        public static string ContactDAL
        {
            get
            {
                return CONTACT_DAL;
            }
        }

        /// <summary>
        /// 联系人组程序集名称
        /// </summary>
        public static string ContactGroupDAL
        {
            get
            {
                return CONTACT_GROUP_DAL;
            }
        }

        /// <summary>
        /// 消费支出程序集名称
        /// </summary>
        public static string ExpenditureDAL
        {
            get
            {
                return EXPENDITURE_DAL;
            }
        }

        /// <summary>
        /// 消费明细程序集名称
        /// </summary>
        public static string ExpenditureDetailDAL
        {
            get
            {
                return EXPENDITURE_DETAIL_DAL;
            }
        }

        /// <summary>
        /// 消费类型程序集名称
        /// </summary>
        public static string ExpenditureTypeDAL
        {
            get
            {
                return EXPENDITURE_TYPE_DAL;
            }
        }

        /// <summary>
        /// 收入程序集名称
        /// </summary>
        public static string IncomeDAL
        {
            get
            {
                return INCOME_DAL;
            }
        }

        /// <summary>
        /// 收入明细程序集名称
        /// </summary>
        public static string IncomeDetailDAL
        {
            get
            {
                return INCOME_DETAIL_DAL;
            }
        }

        /// <summary>
        /// 收入类型程序集名称
        /// </summary>
        public static string IncomeTypeDAL
        {
            get
            {
                return INCOME_TYPE_DAL;
            }
        }

        /// <summary>
        /// 日志程序集名称
        /// </summary>
        public static string LogDAL
        {
            get
            {
                return LOG_DAL;
            }
        }

        /// <summary>
        /// 用户程序集名称
        /// </summary>
        public static string UserDAL
        {
            get
            {
                return USER_DAL;
            }
        }
        #endregion
    }
}
